﻿Imports System.ComponentModel

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class ucDistrictDetails
    Inherits UcBaseEditControl
    Implements IUcEditControl

#Region "Designer"
    'UserControl overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()
        
        ' Add any initialization after the InitializeComponent() call.
        
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.DistrictCodelbl = New System.Windows.Forms.Label()
        Me.DistrictCode = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.DistrictNamelbl = New System.Windows.Forms.Label()
        Me.DistrictName = New org.codegen.win.controls.CGTextBox(Me.components)
        
        
        Me.SuspendLayout()
        '
        'DistrictCodelbl
        '
        Me.DistrictCodelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DistrictCodelbl.Location = New System.Drawing.Point(5, 15)
        Me.DistrictCodelbl.Name = "DistrictCodelbl"
        Me.DistrictCodelbl.Size = New System.Drawing.Size(120, 20)
        Me.DistrictCodelbl.TabIndex = 0
        Me.DistrictCodelbl.Text = "District Code"
        Me.DistrictCodelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'DistrictCode
        '
        Me.DistrictCode.AssociatedLabel = Me.DistrictCodelbl
        Me.DistrictCode.BackColor = System.Drawing.Color.LightYellow
        Me.DistrictCode.ErrProvider = Nothing
        Me.DistrictCode.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DistrictCode.FormatPattern = Nothing
        Me.DistrictCode.isMandatory = True
        Me.DistrictCode.Location = New System.Drawing.Point(135, 15)
        Me.DistrictCode.MaxLength = 255
        Me.DistrictCode.MaxValue = Nothing
        Me.DistrictCode.MinValue = Nothing
        Me.DistrictCode.Name = "DistrictCode"
        Me.DistrictCode.Size = New System.Drawing.Size(78, 21)
        Me.DistrictCode.TabIndex = 0
        '
        'DistrictNamelbl
        '
        Me.DistrictNamelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DistrictNamelbl.Location = New System.Drawing.Point(5, 45)
        Me.DistrictNamelbl.Name = "DistrictNamelbl"
        Me.DistrictNamelbl.Size = New System.Drawing.Size(120, 20)
        Me.DistrictNamelbl.TabIndex = 1
        Me.DistrictNamelbl.Text = "District Name"
        Me.DistrictNamelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'DistrictName
        '
        Me.DistrictName.AssociatedLabel = Me.DistrictNamelbl
        Me.DistrictName.BackColor = System.Drawing.Color.LightYellow
        Me.DistrictName.ErrProvider = Nothing
        Me.DistrictName.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DistrictName.FormatPattern = Nothing
        Me.DistrictName.isMandatory = True
        Me.DistrictName.Location = New System.Drawing.Point(135, 45)
        Me.DistrictName.MaxLength = 255
        Me.DistrictName.MaxValue = Nothing
        Me.DistrictName.MinValue = Nothing
        Me.DistrictName.Name = "DistrictName"
        Me.DistrictName.Size = New System.Drawing.Size(288, 21)
        Me.DistrictName.TabIndex = 1
        '
        
        '
        
        '
        'ucDistrictDetails
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange
        Me.Controls.Add(Me.DistrictCodelbl)
        Me.Controls.Add(Me.DistrictCode)
        Me.Controls.Add(Me.DistrictNamelbl)
        Me.Controls.Add(Me.DistrictName)
        Me.Name = "ucDistrictDetails"
        Me.Size = New System.Drawing.Size(829, 386)
        
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

	
	
	Friend WithEvents DistrictCodelbl As System.Windows.Forms.Label
	Friend WithEvents DistrictCode As CGTextBox
	Friend WithEvents DistrictNamelbl As System.Windows.Forms.Label
	Friend WithEvents DistrictName As CGTextBox


#End Region

#Region "Properties"
	
#End Region

#Region "Methods"
    
	''' <summary>
	''' Fills the controls on the screen from data in the object
	''' </summary>
	''' <remarks></remarks>
	Public Sub _loadData() Handles Me.evLoadObjectData


		Dim mo As District = DirectCast(Me.ModelObject(), District)
		Me.DistrictCode.value = mo.DistrictCode
		Me.DistrictName.value = mo.DistrictName


	End Sub


	''' <summary>
	''' Loads the object from the database and then sets the proeperties 
	''' of the object from values on the controls
	''' </summary>
	''' <remarks></remarks>
	Public Sub _loadToObject() Handles Me.evLoadToObject

		Dim mo As District = DirectCast(Me.ModelObject, District)
		mo.setDistrictCode(Me.DistrictCode.text)
		mo.setDistrictName(Me.DistrictName.text)


	End Sub


	Public Sub _InitializeControl() Handles Me.InitializeControl

		If Me.isInitialized = False Then
			'setup datasources here
			

			Me.isInitialized = True
		End If

	End Sub

#End Region


End Class


